home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1997 February / EnigmA AMIGA RUN 15 (1997)(G.R. Edizioni)(IT)[!][issue 1997-02][PLANET CD V].iso / recent / mcf4amrc.lha / MCF4AmIRC / Rexx / MCF_HELP.AMIRX < prev    next >
Text File  |  1996-12-14  |  1KB  |  10 lines

  1. /* MCF_HELP.AMIRX
  2. // $VER: MCF_HELP.AMIRX 4.9 (11.12.96)
  3. \\ Written by Donald T. Becker (dtbecker@prolog.net) IRC: StarDustr
  4. // Please mail any bug reports/comments to the above address with a subject
  5. \\ header of MCF.AMIRX.
  6. //
  7. \\ ** What to do with this file?
  8. // Put this script in REXX:        It will be used by MCF.AMIRX.
  9. */
  10. ;arg MCFenv auth Rnick junk funct junk;address value(MCFenv);DeLay=1;clp=pos('.',MCFenv);Client=substr(MCFenv,clp+1);SFP="SFP."||Client;SFPflag=getclip(value(SFP));if SFPflag='Y' then exit;call setclip(value(SFP),'Y');if funct="" then;do;"RAW PRIVMSG "Rnick" :Use  %STATUS  To List Status Level and available Commands.";"RAW PRIVMSG "Rnick" :Type %HELP command   to get help on a command.";call setclip(value(SFP));exit;end;xl=pos(".",MCFenv);Client=substr(MCFenv,xl+1);CMC="CMDS."||Client;CmdLine=getclip(CMC);fpos=pos(funct,CmdLine);if fpos=0 then;do;call setclip(value(SFP));exit;end;Rauth=substr(CmdLine,fpos-3,2);if auth<Rauth then;do;"RAW PRIVMSG "Rnick" :You do not have authorization to use that command.";call setclip(value(SFP));exit;end;HCmd=substr(funct,2);HFName="MCF:MCF_"||HCmd||".help";if ~exists(HFName) then;do;"RAW PRIVMSG "Rnick" :Help for"d2c(2) funct d2c(2)"does not Exist.";call setclip(value(SFP));exit;end;call open("Input",HFName,"Read");do acntr=1 by 1 until eof("Input");xx=readln("Input");if xx ~="" then;do;"RAW PRIVMSG "Rnick" :" xx;address command wait DeLay sec;end;end acntr;call close("Input");call setclip(value(SFP));exit